package com.ymttest.database.sqlwapper.godmch;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.agent_type;
import com.ymttest.database.model.country_info;
import com.ymttest.database.model.mch_info;
import com.ymttest.database.model.ymt_autoreply;
import com.ymttest.utils.EnvSetup;
/************************************************************************************
 * @Author : 吴文
 * @Date : 
 * @Copyright : 洋码头
 *godmach
 ************************************************************************************/
public class country_infoWapper {
	SqlManager manage;
	public country_infoWapper() {
		manage = new SqlManager("mysqlgodmchdb" + EnvSetup.getEnv());
		 
	}
	public  country_info selectByPrimaryKey(String country) throws InterruptedException {
		country_info model = (country_info)manage.getSelectResults("com.ymttest.database.mapping.godmch.country_infoMapper.selectByPrimaryKey",country).get(0);
		manage.commit();
		return model;
	}
	/**
	 * 查询所有国家信息
	 * @param country
	 * @return
	 * @throws InterruptedException
	 */
	public  List<country_info> selectAllCountryInfo() throws InterruptedException {
		List<country_info> model =manage.getSelectResults("com.ymttest.database.mapping.godmch.country_infoMapper.selectAllCountryInfo",null);
		manage.commit();
		return model;
	}
	public static void main(String args[]) {
	  
	}
}
